<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/basePath.jsp" %>
<%@ include file="/classes/CommonHelper.class.jsp" %>
<%
	String url = getParameterAndSetAttribute(request,"go_url");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>用户登录</title>
<style type="text/css">
td>font {
	font-size: 16px;
}

.txt{width: 200px}

.xxdl td{ height:30px;}
</style>
<%
String code = request.getParameter("code");
if("1".equals(code)){
	%>
	<script type="text/javascript">
		alert("验证码错误！");
	</script>
	<%
}else if("2".equals(code)){
	%>
	<script type="text/javascript">
		alert("用户名密码均不能为空！");
	</script>
	<%
}else if("3".equals(code)){
	%>
	<script type="text/javascript">
		alert("用户名或密码不正确！");
	</script>
	<%
}
%>
<script type="text/javascript" src="../js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="../js/jquery.form.js"></script>
<script type="text/javascript">
$(document).ready(function() { 
    $('#myLoginForm').ajaxForm(function(data) {
    	eval(data);
    	$("#imgCode").attr("src",'../imageMesg.jsp?r='+Math.random());
    }); 
}); 
</script>
</head>
<body style="padding:0px; margin:0px;">
<form id="myLoginForm" action="../wdbs/login_user_do.class.jsp" method="post">
<div style=" width:260px; margin:auto; margin-top:5px;">
	<table style="font-size: 12px; margin:auto;" width="260" class="xxdl">
	<tr>
		<td width="71" style="font-size:14px;">用户名:</td>
		<td colspan="2"> <input type="text" id="login_name" name="login_name" style=" width:185px;"/><span style=" color:red; margin-left:10px;">*</span> </td>
	</tr>
	<tr>
		<td style="font-size:14px;"> 密&nbsp;&nbsp;&nbsp;&nbsp;码:</td>
		<td colspan="2"><input type="password" id="login_pwd" name="login_pwd" style=" width:185px;"/><span style=" color:red; margin-left:10px;">*</span></td>
	</tr>
	<tr>
		<td style="font-size:14px;">验证码:</td>
		<td colspan="2"><input type="text" id="vCode" name="vCode"  style=" width:110px;"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../imageMesg.jsp" alt="点击图片更换" id="imgCode" onclick="this.src='../imageMesg.jsp?r='+Math.random()" /><span style=" color:red; margin-left:10px;">*</span></td>
	  </tr>
	</table>
    <table style="font-size: 12px; margin:auto;" width="260" class="xxdl">
    	<tr>
		<td width="152">
		  <input type="hidden" name="type" value="3" />
		  <input type="hidden" name="go_url" value="${go_url }" />
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value=""  style=" width:72px; border:none; height:23px; background:url(css/del.jpg) no-repeat;"/>	    </td>
		<td width="96">
			<a style="background:url(css/zc.jpg) no-repeat; width:72px; height:23px;display: block;text-decoration: none; " href="../wdbs/register_user.jsp" target="_blank">&nbsp;</a>
		</td>
	</tr>
    </table>
    </div>
	</form>
</body>
</html>
